<?php
/**
 * @author Nguyễn Sơn Tùng <sontung.x305@gmail.com> <YM :terminator_nst>
 * @version 1.0
 * @copyright fteam.vn
 * Date: 23/04/2012
 * Time: 14:57
 */
require('../common/define.php');
// remove the following line when in production mode
if($_SERVER['REMOTE_ADDR'] == '127.0.0.1') defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

// change the following paths if necessary
if(extension_loaded('apc')) {
    $yii=COMMON_FOLDER.'/libs/yii/yiilite.php';
} else {
    $yii=COMMON_FOLDER.'/libs/yii/yii.php';
}
$globals=COMMON_FOLDER.'/globals.php';
$config=BACK_END.'/config/backend.config.php';

require_once($yii);
require_once($globals);
Yii::createWebApplication($config)->run();